import java.util.*;
public class EX15_3{
	public static void main(String args[]) {
		LinkedList mylist= new LinkedList();
		mylist.add("我");
		mylist.add("帅");
		int number = mylist.size();
		for(int i = 0;i<number;i++){
			String temp=(String)mylist.get(i);
			System.out.println("第"+i+"结点中的数据："+temp);
		}
		Iterator iter = mylist.iterator();
		while(iter.hasNext()) {
			String te= (String)iter.next();
		}
	}
}
